#ifndef _DSWAVSERVER_H
#define _DSWAVSERVER_H
#include <libbase/dswtcpserver_base.h>

class CDswavserver : public CDswtcpserver_base
{
public:
	CDswavserver(LPST_ENV_T pEnv, int nPort);
	virtual ~CDswavserver();
private:
	virtual void OnAccept(evutil_socket_t fd, struct sockaddr *address, int socklen);
	virtual int OnMessage(EN_MSG_TYPE nMsgType, void * pParam);
private:
	HashTable* m_pClientTable;
	pthread_mutex_t m_nLock;
};

#endif

